import scrapy
from bizhiPro.items import BizhiproItem

class BizhiSpider(scrapy.Spider):
    name = 'bizhi'
    # allowed_domains = ['www.xxx.com']
    start_urls = ['http://www.netbian.com/1920x1080/index.htm']

    # url = 'http://www.netbian.com/1920x1080/index_%d.htm'
    # page_num = 2

    def parse(self, response):
        li_list = response.xpath('//*[@id="main"]/div[2]/ul/li')
        for li in li_list:
            src = li.xpath('./a/img/@src').extract_first()
            item = BizhiproItem()
            item['src'] = src
            yield item